home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 49 / Amiga Format CD49 (2000-01-17)(Future Publishing)(GB)(Track 1 of 3)[!][issue 2000-02].iso / -serious- / comms / other / novia / src / include / novia_types.h < prev    next >
C/C++ Source or Header  |  1999-12-06  |  11KB  |  419 lines

  1. #ifndef NOVIA_TYPES_H
  2. #define NOVIA_TYPES_H
  3. #define NOVIA_TYPES_H_VERSION "$VER: 0.07 (09.10.1999)"
  4. // (c) Copyright 1996-1999 by Thorsten Gehler
  5. // All rights reserved. Read license.readme for copyright informations.
  6.  
  7. // V0.06 (10.06.1998) (c) copyright 1996-1998 by Thorsten Gehler
  8. /* V0.07 (09.10.1999) (c) copyright 1996-1999 by Thorsten Gehler
  9.  
  10.     - LOWLEVEL COMMANDS ADDED
  11. */
  12.  
  13. #define NOVIA_CLIENT            1
  14. #define NOVIA_MAIN                2
  15.  
  16. #define CLIENT                    1
  17. #define MAIN                    2
  18.  
  19. /*** get string/long/line etc. flags ***/
  20.  
  21. #define ESC_UP                     1
  22. #define ESC_DOWN                 2
  23. #define CURSER_BREAK             4
  24. #define BUFFERED                8
  25. #define TAB_FORWARD                16
  26. #define TAB_BACKWARD            32
  27. #define TAB                        (TAB_FORWARD|TAB_BACKWARD)
  28. #define INPUT_TYPE_STRING        64
  29. #define INPUT_TYPE_NUMBER        128
  30. #define INPUT_TYPE_IP            256
  31.  
  32. /***************************************/
  33.  
  34. #define MAXARGLEN                50
  35. #define MAXARGS                    10
  36.  
  37. /*** AskKey flags ***/
  38.  
  39. #define FLAG_NO                    1
  40. #define FLAG_YES                2
  41. #define FLAG_ALL                4
  42. #define FLAG_CANCEL                8
  43. #define FLAG_QUIT                16
  44.  
  45. /*** AskKey results ***/
  46.  
  47. #define RESULT_YES                1
  48. #define RESULT_NO                2
  49. #define RESULT_ALL                3
  50. #define RESULT_CANCEL            4
  51. #define RESULT_QUIT                5
  52.  
  53.  
  54.  
  55. /*** VDE - Type 1 ***/
  56.  
  57. #define VDE_BYTE                1
  58. #define VDE_WORD                2
  59. #define VDE_LONG                4
  60. #define VDE_STRING                5
  61. #define VDE_DATE                6
  62. #define VDE_BOOL                7
  63. #define VDE_ITEMSORT            8
  64. #define VDE_FILEACTION            9
  65. #define VDE_SHOWNAME            10
  66. #define VDE_PURGE                11
  67. #define VDE_GENDER                12
  68. #define VDE_NETWORK                13
  69. #define VDE_BUFFERTYPE            14
  70. #define VDE_SEX                    20
  71. #define VDE_LANGUAGE            21
  72. #define VDE_TEXTTYPE            22
  73. #define VDE_MOREMODE            23
  74. #define VDE_TIMEFORMAT            24
  75. #define VDE_DATEFORMAT            25
  76. #define VDE_TERMLINEFEED         26
  77. #define VDE_TERMTABS            27
  78. #define VDE_TERMANSI            28
  79. #define VDE_TERMCOLOR            29
  80. #define VDE_TERMTYPE            30
  81. #define VDE_COMPTYPE            31
  82. #define VDE_HELPLEVEL            32
  83. #define VDE_PROTOCOL            33
  84. #define VDE_PAUSING                34
  85. #define VDE_YANKHIDE            35
  86. #define VDE_AUTOHIDE            36
  87. #define VDE_SCREENMODE            37
  88. #define VDE_FONT                38
  89. #define VDE_IP                    39
  90.  
  91. #define VDE_NULL                0
  92.  
  93. /* Type 2*/
  94. #define VDE_EDITMEMBERS            200
  95. #define    VDE_TEXTONLY            248
  96. #define    VDE_READONLY            249
  97. #define    VDE_READWRITE            250
  98. #define    VDE_LOAD                251
  99. #define VDE_SAVE                252
  100. #define VDE_QUIT                253
  101. #define VDE_KILL                254
  102. #define VDE_SUBMENU                255
  103.  
  104. /* Type of VDE */
  105. #define VDEID_USER                1
  106. #define VDEID_SUBBOARD            2
  107. #define VDEID_SUBDIR            3
  108. #define VDEID_VOTE                4
  109. #define VDEID_MAINPORTCONFIG    5
  110. #define VDEID_CLIENTCONFIG        6
  111. #define VDEID_NRC                7
  112. #define VDEID_MEMBER            20
  113.  
  114. /* General Types */
  115.  
  116.  
  117. #define TYPE_BYTE                1
  118. #define TYPE_WORD                2
  119. #define TYPE_LONG                4
  120. #define TYPE_STRING                5
  121. #define TYPE_DATE                6
  122. #define TYPE_BOOL                7
  123. #define TYPE_ITEMSORT            8
  124. #define TYPE_FILEACTION            9
  125. #define TYPE_SHOWNAME            10
  126. #define TYPE_PURGE                11
  127. #define TYPE_GENDER                12
  128. #define TYPE_NETWORK            13
  129. #define TYPE_BUFFERTYPE            14
  130. #define TYPE_SEX                20
  131. #define TYPE_LANGUAGE            21
  132. #define TYPE_TEXTTYPE            22
  133. #define TYPE_MOREMODE            23
  134. #define TYPE_TIMEFORMAT            24
  135. #define TYPE_DATEFORMAT            25
  136. #define TYPE_TERMLINEFEED        26
  137. #define TYPE_TERMTABS            27
  138. #define TYPE_TERMANSI            28
  139. #define TYPE_TERMCOLOR            29
  140. #define TYPE_TERMTYPE            30
  141. #define TYPE_COMPTYPE            31
  142. #define TYPE_HELPLEVEL            32
  143. #define TYPE_PROTOCOL            33
  144. #define TYPE_PAUSING            34
  145. #define TYPE_YANKHIDE            35
  146. #define TYPE_AUTOHIDE            36
  147. #define TYPE_YANKARC            37
  148. #define TYPE_YANKMETHOD            38
  149. #define TYPE_DEFARC                39
  150. #define TYPE_USERNUMBER            40
  151.  
  152. #define TYPE_NULL                0
  153.  
  154. // V0.07 Low Level Commands
  155.  
  156. #define LOWLEVEL_CMD_MAKE_FILESYSTEM    20001
  157. #define LOWLEVEL_CMD_MAKE_ROOT            20002
  158. #define LOWLEVEL_CMD_ADD_DIRECTORY        20003
  159. #define LOWLEVEL_CMD_ADD_LINK                20004
  160. #define LOWLEVEL_CMD_ADD_COMMAND            20005
  161.  
  162.  
  163. #define CMD_LOGIN                1
  164. #define CMD_LOGOFF                2
  165. #define CMD_RELOGIN                3
  166. #define CMD_USERINFO            4
  167. #define CMD_STATUS                5
  168. #define CMD_VIEWNEW                6
  169. #define CMD_VIEWFEEDBACK        7
  170.  
  171. #define CMD_QUIT                8
  172. #define CMD_BROWSE                9
  173. #define CMD_NEXT                10
  174. #define CMD_BACK                11
  175. #define CMD_PREVIEW                12
  176. #define CMD_LIST                13
  177. #define CMD_SAVE                14
  178. #define CMD_YES                    15
  179. #define CMD_NO                    16
  180.  
  181. #define CMD_WRITEFILE            17
  182. #define CMD_DELFILE                18
  183. #define CMD_EDITFILE            19
  184. #define CMD_COPYFILE            20
  185.  
  186. #define CMD_EDITACCOUNT            21
  187. #define CMD_EDITGROUP            22
  188. #define CMD_ACCOUNT_DEL            23
  189. #define CMD_EDITACCOUNTCOMMENT    24
  190.  
  191. #define CMD_OPENLOG                25
  192. #define CMD_CLOSELOG            26
  193. #define CMD_ACTIFITY_MONITOR    27
  194. #define CMD_LOG_CALL            28
  195. #define CMD_LOG_TRANSFER        29
  196. #define CMD_LOG_OPEN            30
  197. #define CMD_LOG_AMAINT            31
  198.  
  199. #define CMD_SETPORTPRI            32
  200. #define CMD_PORTOPEN            33
  201. #define CMD_PORTCLOSE            34
  202. #define CMD_REMAINDER            35
  203.  
  204. #define CMD_OLM                    36
  205. #define CMD_MEGAOLM                37
  206. #define CMD_FILEOLM                38
  207. #define CMD_CHAT                39
  208. #define CMD_SYSOPCHAT            40
  209.  
  210. #define CMD_SENDMAIL            41
  211. #define CMD_READMAIL            42
  212. #define CMD_EDITMAIL            43
  213. #define CMD_FORWARDMAIL            44
  214. #define CMD_FEEDBACK            45
  215.  
  216. #define CMD_SETTING_TERM        46
  217. #define CMD_SETTING_USER        47
  218. #define CMD_SETTING_GLOBAL        48
  219. #define CMD_SETTING_MISC        49
  220. #define CMD_SETTING_PREFS        50
  221. #define CMD_SETTING_COSTS        51
  222.  
  223. #define CMD_DOWNLOAD_DIRECT        52
  224. #define CMD_DOWNLOAD_SELECT        53
  225.  
  226. #define CMD_HELP                54
  227. #define CMD_TIME                55
  228. #define CMD_INFO                56
  229. #define CMD_WHO                    57
  230. #define CMD WHOIS                58
  231.  
  232. #define CMD_NEWUSER                59
  233. #define CMD_CHAGEPW                60
  234. #define CMD_PORTMONITOR            61
  235. #define CMD_ACTIVITYGRAPH        62
  236. #define CMD_STATISTIC            63
  237. #define CMD_HIDE                64
  238. #define CMD_MUFFLE                65
  239. #define CMD_SLEEP                66
  240. #define CMD_WHY                    68
  241. #define CMD_IDENTIFY            69
  242. #define CMD_EDITFINGER            70
  243. #define CMD_COSTS                71
  244. #define CMD_XPERT                72
  245. #define CMD_EDITCOMMENT            73
  246. #define CMD_PARTYKAL            74
  247. #define CMD_STERNUL                75
  248. #define CMD_TOPTOOLS            76
  249. #define CMD_NEWS                77
  250. #define CMD_DOWNLOAD            78
  251. #define CMD_SHELL                79
  252. #define CMD_PING                80
  253. #define CMD_VOTE                81
  254. #define CMD_CALLBACK            82
  255. #define CMD_DIALOUT                83
  256. #define CMD_TERMINAL            84
  257. #define CMD_SCANNEW                85
  258. #define CMD_YANK                86
  259. #define CMD_READNEW                87
  260. #define CMD_DELNEW                88
  261. #define CMD_YANKGLOBAL            89
  262. #define CMD_YANKLOCAL            90
  263. #define CMD_READGLOBAL            91
  264. #define CMD_VIEWFILE            92
  265. #define CMD_EXAMINE                93
  266. #define CMD_SETFLAGS            94
  267. #define CMD_GRAB                95
  268. #define CMD_JOIN                96
  269. #define CMD_DIR                    97
  270. #define CMD_SCAN                98
  271. #define CMD_UPLOAD                99
  272. #define CMD_VALIDATE            101
  273. #define CMD_ADOPT_ORPHANS        102
  274. #define CMD_EDITENTRYMSG        103
  275. #define CMD_ATRIBUTE            104
  276. #define CMD_TRANSFORM            105
  277. #define CMD_CD                    106
  278. #define CMD_PARRENT                107
  279. #define CMD_MEMBERS                108
  280. #define CMD_SELECT                109
  281. #define CMD_POST                110
  282. #define CMD_ADD                    111
  283. #define CMD_DROP                112
  284. #define CMD_CONTINUE            113
  285.  
  286. #define CMD_SUBBOARD_NEW        114
  287. #define CMD_SUBBOARD_EDIT        115
  288. #define CMD_SUBBOARD_DEL        116
  289.  
  290. #define CMD_MAILVERIFY            117
  291. #define CMD_SHOWUSERLIST        118
  292.  
  293. #define CMD_GO                    119
  294. #define CMD_BASE                121
  295. #define CMD_NEWPORT                122
  296. #define CMD_CLOSEPORT            123
  297.  
  298. #define CMD_RESETBBS            124
  299. #define CMD_PORTARG                125
  300. #define CMD_PORTREMOVE            126
  301.  
  302. #define CMD_EDITCONFIG            127
  303. #define CMD_EDITCLIENT            128
  304. #define CMD_CLOSEGUI            129
  305. #define CMD_LOADGUI                130
  306. #define CMD_DEL                    131
  307. #define CMD_EDIT                132
  308. #define CMD_MOVE                133
  309.  
  310. #define CMD_REPLY                134
  311. #define CMD_RESPONSE            135
  312.  
  313. #define CMD_OPENCHAT            140
  314. #define CMD_TEXT                150
  315. #define CMD_REPAIR                151
  316. #define CMD_ADDMEMBER            152
  317. #define CMD_DELMEMBER            153
  318. #define CMD_ADDGROUP            154
  319. #define CMD_DELGROUP            155
  320. #define CMD_LISTMEMBERS            156
  321. #define CMD_CONFIG                157
  322. #define CMD_VIEWSELECTLIST        158
  323. #define CMD_KILL                160
  324. #define CMD_RENAME                161
  325.  
  326. #define MSG_GETMAINPORT            1
  327. #define MSG_GETLOCALPORT        2
  328. #define MSG_INITPORT            3
  329. #define MSG_PORT_REMOVE            4            // Mainport beginn to closing port.
  330. #define MSG_PORT_OPEN            5
  331. #define MSG_PORT_OFFLINE        6
  332. #define MSG_PORT_CLOSE            7            // Port close himselve
  333. #define MSG_PORT_LOCK            9
  334. #define MSG_PORT_PING            10
  335. #define MSG_PORT_CHANGE            11
  336. #define MSG_PORT_LOSTCARRIER    12            // New in V0.06
  337. #define MSG_PORT_LOGOFF            13            // New in V0.06
  338. #define MSG_PORT_CID            14            // New in V0.06 ConnectID (for Telnet logins)
  339. #define MSG_PORT_RING            15
  340.  
  341. #define MSG_PORT_TOFRONT        50
  342. #define MSG_PORT_CLOSEWINDOW    51
  343. #define MSG_PORT_LOCKCONSULE    52
  344. #define MSG_ABOUT                53
  345.  
  346. #define MSG_CHAT_BREAK            60
  347.  
  348. #define MSG_PING                70
  349.  
  350. #define MSG_SYSTEMINFO            100
  351. #define MSG_COMMAND                101
  352.  
  353. #define MSG_TEXT                200
  354.  
  355. #define MSG_RETURN_ERROR        1000
  356. #define MSG_RETURN_TIMEOUT        1001
  357.  
  358. #define MSG_REPLY                10000
  359. #define MSG_REPLY_PORTCLOSED    10001    
  360. #define MSG_REPLY_INITPORT        10002
  361. #define MSG_REPLY_PORTOFFLINE    10005    
  362. #define MSG_REPLY_INITPORT_FAIL    10010
  363.  
  364. #define MSG_REPLY_PORTCLOSEFAILAT    100050
  365. #define MSG_REPLY_PORTCLOSEOK        100100
  366.  
  367. #define MSG_NREXX_START            20000
  368. #define MSG_NREXX_END            20010
  369. #define MSG_NREXX_OK            20020
  370. #define MSG_NREXX_FAILAT        20050
  371.  
  372. #define MAX_NETWORK                7
  373.  
  374. #define NETWORKTYPE_LOCAL        0            // Port are running on the same machine
  375. #define NETWORKTYPE_SERIAL        1            // Port are running on a other machine with a serial-cable
  376. #define NETWORKTYPE_PARALLEL    2            // Port are running on a other machine with a parallel-cable
  377. #define NETWORKTYPE_TCP            3            // Port are running on a other machine with TCP-IP connection
  378. #define NETWORKTYPE_ENVOY        4            // Port are running on a other machine with EnvoyNetware
  379. #define NETWORKTYPE_IPX            5            // Port are running on a other machine with NovellNetware
  380. #define NETWORKTYPE_MSN            6            // Port are runninf on a other machine with Microsoft network.
  381. #define NETWORKTYPE_NET            7            // Port are running on a other machine with a other network
  382.  
  383. #define PORT_TYPE_LOCAL            0            // Port are running on the same machine
  384. #define PORT_TYPE_NETSER        1            // Port are running on a other machine with a serial-cable
  385. #define PORT_TYPE_NETPAR        2            // Port are running on a other machine with a parallel-cable
  386. #define PORT_TYPE_NETTCPIP        3            // Port are running on a other machine with TCP-IP connection
  387. #define PORT_TYPE_ENVOY            4            // Port are running on a other machine with EnvoyNetware
  388. #define PORT_TYPE_NETNOVELL        5            // Port are running on a other machine with NovellNetware
  389. #define PORT_TYPE_NETMICROSOFT    6            // Port are runninf on a other machine with Microsoft network.
  390. #define PORT_TYPE_NET            7            // Port are running on a other machine with a other network
  391.  
  392. #define PORT_STATUS_WAITLOAD    -1            // No calls, no systemmaintance
  393. #define PORT_STATUS_CLOSE        0            // No calls, no systemmaintance
  394. #define PORT_STATUS_OFFLINE        1            // port is closed when a systemmaintance are running
  395. #define PORT_STATUS_WAITCALL    2            // Waiting for a call
  396. #define PORT_STATUS_CONNECT     3            // Call detected, waiting for carrier.
  397. #define PORT_STATUS_LOGIN        4            // Starting Login. Carrier detected.
  398. #define PORT_STATUS_ONLINE        5            // User is online.
  399.  
  400. #define MAINPORT                1
  401. #define CLIENTPORT                2
  402.  
  403. #define VISUALEDIT_FILE                1
  404. #define VISUALEDIT_EXITIFNOTEXIT 2
  405. #define VISUALEDIT_READONLY        4
  406. #define VISUALEDIT_FROMADDRESS    8
  407.  
  408. #define ERROR_OUT_OF_MEMORY                        1000
  409. #define ERROR_INVALID_OBJECT_NAME                1001
  410. #define ERROR_INVALID_OBJECT_TYPE                1002
  411. #define ERROR_NOT_A_NOVIA_DOS_PROGRAMM            1003
  412. #define ERROR_CANT_START_FROM_MAINTASK_ONLY    1004
  413. #define ERROR_ACCESS_DENIED                        1005
  414. #define ERROR_GUI_NOT_OPENED                        1006
  415. #define ERROR_GUI_ALREADY_OPENED                    1007
  416. #define ERROR_X_ENVELOPE_TO_NOT_FOUND            1008
  417. #define ERROR_USER_NOT_FOUND                        1009
  418.  
  419. #endif // NOVIA_TYPES_H